﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Windows;

namespace Enterprises.Wpf.Sample.ViewModel
{
    /// <summary>
    ///  简单单位转换测试.
    /// </summary>
    public partial class UnitDemoCtlViewModel : ObservableObject
    {
        /// <summary>
        /// 构造函数.
        /// </summary>
        public UnitDemoCtlViewModel()
        {
        }

        

        /// <summary>
        /// 当前位置.
        /// </summary>
        [ObservableProperty]
        private double postion=1000;

        

        /// <summary>
        /// 上使能
        /// </summary>
        [RelayCommand]
        private void Show()
        {
            MessageBox.Show(Postion.ToString());
        }
    }
}
